home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / blat11.zip / GENSOCK.H < prev    next >
C/C++ Source or Header  |  1994-07-01  |  1KB  |  50 lines

  1. #define ERR_CANT_MALLOC            4001
  2. #define ERR_SENDING_DATA        4002
  3. #define ERR_INITIALIZING        4003
  4. #define ERR_VER_NOT_SUPPORTED        4004
  5. #define ERR_EINVAL            4005
  6. #define ERR_SYS_NOT_READY        4006
  7. #define ERR_CANT_RESOLVE_HOSTNAME    4007
  8. #define ERR_CANT_GET_SOCKET        4008
  9. #define ERR_READING_SOCKET        4009
  10. #define ERR_NOT_A_SOCKET        4010
  11. #define ERR_BUSY            4011
  12. #define ERR_CLOSING            4012
  13. #define WAIT_A_BIT            4013
  14. #define ERR_CANT_RESOLVE_SERVICE    4014
  15. #define ERR_CANT_CONNECT        4015
  16. #define ERR_NOT_CONNECTED        4016
  17. #define ERR_CONNECTION_REFUSED        4017
  18.  
  19. typedef void FAR * socktag;
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. /* function prototypes */
  25.  
  26. int    WINAPI gensock_connect     (char FAR * hostname,
  27.                  char FAR * service,
  28.                  socktag FAR * pst);
  29.  
  30. int    WINAPI gensock_getchar     (socktag st, int wait, char FAR * ch);
  31.  
  32. int    WINAPI gensock_put_data (socktag st,
  33.                  char FAR * data,
  34.                  unsigned long length);
  35.  
  36. int    WINAPI gensock_close    (socktag st);
  37.  
  38. int    WINAPI gensock_gethostname    (char FAR * name, int namelen);
  39.  
  40. int    WINAPI gensock_put_data_buffered  (socktag st,
  41.                        char FAR * data,
  42.                        unsigned long length);
  43.  
  44. int    WINAPI gensock_put_data_flush    (socktag st);
  45.  
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49.  
  50.